package com.xfcy.content.service;

import com.xfcy.content.model.dto.BindTeachplanMediaDto;
import com.xfcy.content.model.dto.SaveTeachplanDto;
import com.xfcy.content.model.dto.TeachplanDto;
import com.xfcy.content.model.po.TeachplanMedia;

import java.util.List;

/**
 * @author 晓风残月Lx
 * @date 2023/6/15 23:04
 * 课程计划管理相关接口
 */
public interface TeachplanService {

    // 根据课程id查询课程计划
    public List<TeachplanDto> findTeachplanTree(Long courseId);

    // 新增、修改、保存课程计划
    public void saveTeachplan(SaveTeachplanDto saveTeachplanDto);

    // 课程计划上移获下移
    public void teachplanMove(Long teachplanId, String moveType);

    // 删除课程计划
    public void delete(Long id);

    /**
     * 绑定媒资
     * @param bindTeachplanMediaDto
     * @return
     */
    public TeachplanMedia associationMedia(BindTeachplanMediaDto bindTeachplanMediaDto);

    /**
     * 删除媒资
     * @param teachplanId
     * @param mediaId
     */
    void deleteAssociation(Long teachplanId, Long mediaId);
}
